﻿@model FooterNavModel

@{
    string accountUrl = Model.IsAuthenticated ? Url.Action("Info", "Customer") : Url.RouteUrl("Login", new { returnUrl = Context.Request.Query["returnUrl"].ToString() });
}

<div id="commonNav" class="mobile" style="background-color: rgb(255, 255, 255); padding-bottom: env(safe-area-inset-bottom);">
    <a id="mCommonHome" style="width: 25%" asp-route="Homepage" class="J_ping"
       report-eventid="MCommonBottom_Home">
        <div class="icon-center">
            <img class="nav-img" src="~/images/home.png" />
        </div>
    </a>
    <a id="mCommonType" style="width: 25%" href="@Model.CategoryUrl"
       class="J_ping" report-eventid="MCommonBottom_Category">
        <div class="icon-center">
            <img class="nav-img" src="~/images/category_active.png" />
        </div>
    </a>
    <a id="mCommonCart" style="width: 25%" asp-route="ShoppingCart"
       class="J_ping" report-eventid="MCommonBottom_Cart">
        <div class="icon-center">
            <img class="nav-img" src="~/images/cart.png" />
        </div>
    </a>
    <a id="mCommonMy" style="width: 25%" href="@accountUrl" class="J_ping"
       report-eventid="MCommonBottom_My">
        <div class="icon-center">
            <img class="nav-img" src="~/images/my.png" />
        </div>
    </a>
</div>